package com.xiaofeng.pochi.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xiaofeng.pochi.common.Page;
import com.xiaofeng.pochi.pojo.ShopBrand;
import com.xiaofeng.pochi.pojo.ShopPack;
import com.xiaofeng.pochi.pojo.ShopProductPackVo;
import com.xiaofeng.pochi.pojo.dto.ShopPackDto;

import java.util.List;

/**
 * Created with IntelliJ IDEA
 *
 * @Author: chc
 * @Date: 2022/08/13/22:30
 * @Description:
 */
public interface ShopPackService extends IService<ShopPack> {

    /**
     * 添加
     * @param shopPackDto
     */
    void save(ShopPackDto shopPackDto);

    /**
     * 修改
     * @param
     */
    void update(ShopPackDto shopPackDto);

    /**
     * 根据 id查询
     * @param id
     * @return
     */
    ShopPackDto getById(Long id);

    /**
     * 根据id删除
     * @param id
     */
    void delete(Long id);

    /**
     * 分页查询
     * */
    Page<ShopPack> getByPage(Page<ShopPack> page);


    /**
     * 根据商品编号查询套装
     *
     */
    List<ShopProductPackVo> getByProductId(Long productId);
}
